const { vwx } = require("./vwx/index");
import config from './config/config.js';
import webservice from './service/webservice';
App(vwx({
  config,
  webservice,
  onLaunch() {
    let openId = wx.getStorageSync('openId');
    if (openId) {
      this.config.req.data.openId = wx.getStorageSync('openId');
      this.config.req.data.userId = wx.getStorageSync('userId');
    }
  },
  onShow() {
    console.log("App onShow");
  },

  globalData: {
    userInfo: null
  }
}))